<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="icon" href="/public/images/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="/public/css/min.css">
    <title>企业新闻</title>
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <link rel="stylesheet" href="/public/css/style.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="/public/css/pagenavi-css.css" type="text/css" media="all"/>
    <script type="text/javascript" src="/public/js/jquery-1.11.3.min.js"></script>
</head>
<body data-theme-url="" data-device="desktop" class="home page-template page-template-page-templates page-template-page-home page-template-page-templatespage-home-php page page-id-5 language-en">
<div class="loadingBg">
    <div class="loadinglg">
        <div class="ldlogo"></div>
        <div class="ldbg"></div>
    </div>
</div>
<div class="scroller-wrapper" scrollbar>
    <div class="component-transition-line">
        <div class="transition-line__wrapper">
            <div class="transition-line__line">
                <svg class="transition-line__svg" x="0px" y="0px" viewBox="0 0 1920 3105">
                    <path fill="none" stroke-width="4" d="M861.1,1200c120.8-257.7,320.9-290.4,379.8-527.1c30-120.7-0.7-237.2-5.8-255.8 c-35.3-128.4-114.8-193.9-158-232C1036.8,149.8,960.6,82.7,881.7-4.5"/>
                    <path fill="none" stroke-width="4" d="M695,3102c5.5-82.9,49.5-158,86.1-221.6c90.3-157,135.5-235.5,148-265.1c18.3-43.5,91.8-217.8,72-422.5 c-7.1-72.8-39.4-160.8-104-336.9c-70.6-192.2-84.4-195.4-100-265.1c-33.6-149.6-3.1-247.7,64-390.8"/>
                </svg>
            </div>
        </div>
    </div>
    <!--#include file="/views/component/header.html"-->
    <div th:replace="header :: header"></div>
    <main id="barba-wrapper">
        <section class="barba-container" data-namespace="home">
            <div class="misc-sticky js-printed-checker">
                <div class="misc-sticky__wrapper wrapper--left">
                    <div class="component-nav-vertical">
                        <div class="nav-vertical__list"></div>
                        <div class="nav-vertical__arrow">
                            <button class="arrow-line arrow--bottom"><span></span> <span></span></button>
                            <button class="arrow-line arrow--top"><span></span> <span></span></button>
                        </div>
                    </div>
                </div>
                <div class="component-tabs">
                    <div class="tabs__wrapper">
                        <button class="btn btn--primary btn--large btn--light-2" data-tabs-items="qyxw">
                            <div>
                                <div class="btn__text" data-text="企业新闻">
                                    <span>企业新闻</span>
                                </div>
                            </div>
                        </button>
                        <button class="btn btn--primary btn--large btn--light-2" data-tabs-items="hyzx">
                            <div>
                                <div class="btn__text" data-text="行业资讯">
                                    <span>行业资讯</span>
                                </div>
                            </div>
                        </button>
                    </div>
                </div>
            </div>

            <div class="banner">
                <div class="img"><img th:src="${menu.imageUrl}" alt=""></div>
            </div>

            <div class="news || js-uicolor-checker">
                <div class="container">
                    <div class="js" data-tabs-target="qyxw">
                        <div class="tit">
                            <div class="cn">企业新闻</div>
                            <div class="en">NEWS</div>
                        </div>
                        <div class="txt">
                            <p>&nbsp;</p>
                        </div>
                    </div>
                    <div class="list">
                        <div id="qyxw">
                            <div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2" th:each="n: ${news1}">
                                <div class="position-center">
                                    <div class="center-in || row row--md-2">
                                        <a th:href="'/news_detail_' + ${n.id}" class="preview-new__img || row__item">
                                            <div class="img__wrapper">
                                                <span th:style="'background-image:url(\'' + ${n.img} + '\')'"></span>
                                            </div>
                                        </a>
                                        <div class="preview-new__info || row__item">
                                            <h2 class="preview-new__title" th:text="${session.lang == 'en' ? n.titleEn : n.title}">永新资讯 | 2021年仪器仪表产业发展峰会在宁波召开 永新光学协办</h2>
                                            <div class="preview-new__text" th:text="${session.lang == 'en' ? n.descriptionEn : n.description}">
                                                邀八方来客，谋产业发展。10月19日-
                                                21日，由中国仪器仪表行业协会主办，钉耙精密仪器（深圳）有限公司和宁波水表(集团)股份有限公司联合协办的2021年仪器仪表产业发展峰会暨中国仪器仪表行业协会八届五次理事会议在浙江宁波顺利召开...
                                            </div>
                                            <a th:href="'/news_detail_' + ${n.id}" class="btn btn--primary btn--large btn--light-blue">
                                                <div>
                                                    <div class="btn__text" data-text="查看详情">
                                                        <span>查看详情</span>
                                                    </div>
                                                    <div class="pub-y-line">
                                                        <img src="/public/images/r-line-w.png" alt="">
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>


                        </div>

                        <input type="hidden" id="page1" value="2">
                        <div class="more js-printed-checker">
                            <a href="javascript:;" class="more btn btn--primary btn--large btn--light" id="more1" data-status="1">
                                <div>
                                    <div class="btn__text" data-text="加载更多"><span>加载更多</span></div>
                                    <div class="pub-y-line">
                                        <img src="/public/images/r-line-w.png" alt="">
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    <div class="js" data-tabs-target="hyzx">
                        <div class="tit">
                            <div class="cn">行业资讯</div>
                            <div class="en">Industry information</div>
                        </div>
                        <div class="txt">
                            <p>&nbsp;</p>
                        </div>
                    </div>
                    <div class="list">
                        <div id="hyzx">

                            <div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2" th:each="n: ${news2}">
                                <div class="position-center">
                                    <div class="center-in || row row--md-2">
                                        <a th:href="'/news_detail_' + ${n.id}" class="preview-new__img || row__item">
                                            <div class="img__wrapper">
                                                <span th:style="'background-image:url(\'' + ${n.img} + '\')'"></span>
                                            </div>
                                        </a>
                                        <div class="preview-new__info || row__item">
                                            <h2 class="preview-new__title" th:text="${session.lang == 'en' ? n.titleEn : n.title}">永新资讯 | 2021年仪器仪表产业发展峰会在宁波召开 永新光学协办</h2>
                                            <div class="preview-new__text" th:text="${session.lang == 'en' ? n.descriptionEn : n.description}">
                                                邀八方来客，谋产业发展。10月19日-
                                                21日，由中国仪器仪表行业协会主办，钉耙精密仪器（深圳）有限公司和宁波水表(集团)股份有限公司联合协办的2021年仪器仪表产业发展峰会暨中国仪器仪表行业协会八届五次理事会议在浙江宁波顺利召开...
                                            </div>
                                            <a th:href="'/news_detail_' + ${n.id}" class="btn btn--primary btn--large btn--light-blue">
                                                <div>
                                                    <div class="btn__text" data-text="查看详情">
                                                        <span>查看详情</span>
                                                    </div>
                                                    <div class="pub-y-line">
                                                        <img src="/public/images/r-line-w.png" alt="">
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>


                        </div>

                        <input type="hidden" id="page2" value="2">
                        <div class="more js-printed-checker">
                            <a href="javascript:;" class="more btn btn--primary btn--large btn--light" id="more2" data-status="1">
                                <div>
                                    <div class="btn__text" data-text="加载更多"><span>加载更多</span></div>
                                    <div class="pub-y-line">
                                        <img src="/public/images/r-line-y.png" alt="">
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <script>
                $(function () {
                    var display1 = $('#more1').css('display');
                    var display2 = $('#more2').css('display');

                    $('#more1').click(function () {
                        jz();
                    });

                    $('#more2').click(function () {
                        jz2();
                    });

                    function jz() {
                        var page = parseInt($("#page1").val());
                        var status = $("#more1").attr("data-status");
                        if (status == 1) {
                            status = $("#more1").attr("data-status", "0");
                            $.ajax({
                                type: "post",
                                url: "qyxw.php",
                                data: "&page=" + page,
                                dataType: "json",
                                success: function (data) {

                                    /*数据不够10条隐藏按钮*/
                                    if (data.length < 3) {
                                        $("#more1").hide();
                                    } else {
                                        $("#page1").val(page + 1); //记录页码
                                    }
                                    insertDiv(data);
                                }
                            });
                        }

                    };

                    function jz2() {
                        var page = parseInt($("#page2").val());
                        var status = $("#more2").attr("data-status");
                        if (status == 1) {
                            status = $("#more2").attr("data-status", "0");
                            $.ajax({
                                type: "post",
                                url: "hyzx.php",
                                data: "&page=" + page,
                                dataType: "json",
                                success: function (data) {

                                    /*数据不够10条隐藏按钮*/
                                    if (data.length < 3) {
                                        $("#more2").hide();
                                    } else {
                                        $("#page2").val(page + 1); //记录页码
                                    }
                                    insertDiv2(data);
                                }
                            });
                        }

                    };
                });

                function insertDiv(data) {
                    var information = $("#qyxw");
                    var html = '';
                    for (var i = 0; i < data.length; i++) {
                        html +=
                            '<div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2 is-show printed"><div class="position-center"><div class="center-in || row row--md-2"><a href="/views/new-detail.html?nid=' +
                            data[i].ID +
                            '" class="preview-new__img || row__item"> <div class="img__wrapper"> <span style="background-image:url(\'https://yongxin.yxopt.com/upload/' +
                            data[i].SMALLPIC +
                            '\')"></span></div></a><div class="preview-new__info || row__item"> <h2 class="preview-new__title">' +
                            data[i].TITLE + '</h2> <div class="preview-new__text">' + data[i].JJ +
                            '</div> <a href="/views/new-detail.html?nid=' + data[i].ID +
                            '" class="btn btn--primary btn--large btn--light-blue"> <div> <div class="btn__text" data-text="查看详情"> <span>查看详情</span> </div> <div class="btn__line arrow-line"> <span></span> <span></span> </div> </div> </a> </div> </div> </div> </div>';
                    }
                    information.append(html);
                    $("#more1").attr("data-status", "1");
                }

                function insertDiv2(data) {
                    var information = $("#hyzx");
                    var html = '';
                    for (var i = 0; i < data.length; i++) {
                        html +=
                            '<div class="component-preview-new || js-scroll js-printed-checker || preview-new-type--2 is-show printed"><div class="position-center"><div class="center-in || row row--md-2"><a href="/views/new-detail.html?nid=' +
                            data[i].ID +
                            '" class="preview-new__img || row__item"> <div class="img__wrapper"> <span style="background-image:url(\'https://yongxin.yxopt.com/upload/' +
                            data[i].SMALLPIC +
                            '\')"></span></div></a><div class="preview-new__info || row__item"> <h2 class="preview-new__title">' +
                            data[i].TITLE + '</h2> <div class="preview-new__text">' + data[i].JJ +
                            '</div> <a href="/views/new-detail.html?nid=' + data[i].ID +
                            '" class="btn btn--primary btn--large btn--light-blue"> <div> <div class="btn__text" data-text="查看详情"> <span>查看详情</span> </div> <div class="btn__line arrow-line"> <span></span> <span></span> </div> </div> </a> </div> </div> </div> </div>';
                    }
                    information.append(html);
                    $("#more2").attr("data-status", "1");
                }
            </script>
            <!--#include file="/views/component/footer.html"-->
            <div th:replace="footer :: footer"></div>
            <style>
                #cnzz_stat_icon_1280183050 {
                    margin-left: 20px;
                }
            </style>
        </section>
    </main>
</div>
</body>
</html>